# 计科201132叶英杰
# 用 with 语句重写
with open('a.txt', 'r',encoding='utf-8') as f:
    for line in f:
        print(line)
with open('b.txt', 'w') as f:
    f.write("《夜思》明月照孤影，清风拂素心。思绪如流水，静夜忆知音。")
with open('b.txt', 'r') as f:
    for line in f:
        print(line)